package cn.iocoder.an.module.mold.controller.admin.upkeeptask2item.vo;

import cn.iocoder.an.module.mold.dal.dataobject.upkeepitem.UpkeepItemDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 模具保养任务以及保养项目对照 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UpkeepTask2itemRespVO implements VO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26178")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "保养任务主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4177")
    @ExcelProperty("保养任务主键")
    private Long taskId;

    @Schema(description = "保养项目主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26163")
    @Trans(type = TransType.SIMPLE, target = UpkeepItemDO.class, fields = {"name","code","description"}, refs = {"itemName","itemCode","itemDescription"})
    private Long itemId;

    @Schema(description = "项目名称", example = "你猜")
    private String itemName;

    @Schema(description = "项目编码", example = "你猜")
    private String itemCode;

    @Schema(description = "项目描述", example = "你猜")
    private String itemDescription;

    @Schema(description = "是否完成", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否完成")
    private Integer isCompleted;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
